﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LocationRptList.aspx.cs"
    EnableViewState="false" EnableEventValidation="false" Inherits="WMS6.Web.Analytics.LocationRptList"
    meta:resourcekey="Page" %>

<%@ PreviousPageType VirtualPath="~/Analytics/LocationRptQuery.aspx" %>
<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>LocationRptList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script type="text/javascript">

        window.onload = function() {
            initListPage();
        }

        function returnSearch() {
            var from = document.getElementById("hdnFrom").value;
            if (from != "") {
                window.location.href = "LocationRptQuery.aspx";
            }
            else {
                window.history.go(-1);
            }
        }
    </script>

</head>
<body>
    <form id="F15221" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblReceiptInquiryList" runat="server" CssClass="label_header" Text="货位报告"
                            meta:resourcekey="lblUom"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnRefresh%>"
                            OnClick="btnRefresh_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div id="div_List">
                    <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
                    </div>
                    <asp:GridView ID="gvLoc" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                        CssClass="gridview" DataKeyNames="LOC" Width="1500px" OnSorting="gvLoc_Sorting"
                        OnInit="gvLoc_Init" OnRowDataBound="gvLoc_RowDataBound" meta:resourcekey="gvLoc">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="BoundField">
                                <ItemStyle CssClass="GridViewRowWidth_40" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="TemplateField">
                                <HeaderTemplate>
                                    <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('15221','gvLoc');"
                                        onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                    <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvLoc');" meta:resourcekey="CheckBox1" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvLoc');" meta:resourcekey="CheckBox2" />
                                </FooterTemplate>
                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="LOC" HeaderText="货位" FooterText="货位" SortExpression="LOC"
                                meta:resourcekey="LOC">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOGICAL_LOC" HeaderText="路线顺序" FooterText="路线顺序" SortExpression="LOGICAL_LOC"
                                meta:resourcekey="LOGICAL_LOC">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="T_LOC_USAGE" HeaderText="货位用途" FooterText="货位用途" SortExpression="T_LOC_USAGE"
                                meta:resourcekey="T_LOC_USAGE">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="T_LOC_FLAG" HeaderText="货位属性" FooterText="货位属性" SortExpression="T_LOC_FLAG"
                                meta:resourcekey="T_LOC_FLAG">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="T_STATUS" HeaderText="状态" FooterText="状态" SortExpression="T_STATUS"
                                meta:resourcekey="T_STATUS">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="T_ABC" HeaderText="周转类型" FooterText="周转类型" SortExpression="T_ABC"
                                meta:resourcekey="T_ABC">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="IS_MULTI_SKU" HeaderText="货品混放" FooterText="货品混放" SortExpression="IS_MULTI_SKU"
                                meta:resourcekey="IS_MULTI_SKU">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="IS_MULTI_LOT" HeaderText="批次混放" FooterText="批次混放" SortExpression="IS_MULTI_LOT"
                                meta:resourcekey="IS_MULTI_LOT">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CHECK_DIG" HeaderText="校验位" FooterText="校验位" SortExpression="CHECK_DIG"
                                meta:resourcekey="CHECK_DIG">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="已用容积" HeaderText="已用容积" SortExpression="CUBE_ONHAND"
                                meta:resourcekey="CUBE_ONHAND">
                                <ItemTemplate>
                                    <asp:Label ID="lblCubeOnHand" runat="server" Text='<%# GetPreferenceDigit(Eval("CUBE_ONHAND").ToString()) %>'
                                        meta:resourcekey="lblCubeOnHand"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="容积" HeaderText="容积" SortExpression="CUBIC_CAPACITY"
                                meta:resourcekey="CUBIC_CAPACITY">
                                <ItemTemplate>
                                    <asp:Label ID="lblCubicCapacity" runat="server" Text='<%# GetPreferenceDigit(Eval("CUBIC_CAPACITY").ToString()) %>'
                                        meta:resourcekey="lblCubicCapacity"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="容积占用率" HeaderText="容积占用率" SortExpression="CUBE_ONHAND_PERCENTAGE"
                                meta:resourcekey="CUBE_ONHAND_PERCENTAGE">
                                <ItemTemplate>
                                    <asp:Label ID="lblCubeOnhandPercentage" runat="server" Text='<%# Eval("CUBE_ONHAND_PERCENTAGE").ToString() %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <div>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr style="height: 10px">
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="Result_01">
                                    总计：
                                </td>
                                <td class="Result_02">
                                    <table>
                                        <tr>
                                            <td style="margin-right: 20px;">
                                                &nbsp; &nbsp;
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalCubicCapacity" runat="server" Text="容积:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalCubicCapacityText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalCubeOnHand" runat="server" Text="已用容积:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalCubeOnHandText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <%--<td>
                                                <asp:Label ID="lblTotalCubeOnhandPercentage" runat="server" Text="容积占用率:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalCubeOnhandPercentageText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>    --%>
                                        </tr>
                                    </table>
                                </td>
                                <td class="Result_03">
                                </td>
                            </tr>
                            <tr style="height: 20px">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div id="div_pager">
                    <uc1:Pager ID="PagerFooter" runat="server" OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click"
                        OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click" />
                </div>
                <input type="hidden" runat="server" id="hdnFrom" />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnList" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnRefresh" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnSearch%>"
                            CssClass="button" Enabled="False" OnClientClick="javascript:window.location.href='LocationRptQuery.aspx';return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="<%$Resources:ButtonResource,btnReSearch%>"
                            CssClass="button" Enabled="False" OnClientClick="javascript:returnSearch();return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>"
                            CssClass="button" Enabled="False" OnClick="btnList_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>"
                            CssClass="button" Enabled="False" OnClick="btnExport_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
